package com.funwell.modules.model.user;

import com.funwell.server.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;


@Table(name = "`hcrm_sys_user`")
public class User extends BaseEntity {

    /**
     * 
     */
    @SuppressWarnings("unused")
	private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @Column(name = "`user_name`")
    private String userName;

    /**
     * 登录名
     */
    @Column(name = "`login_name`")
    private String loginName;

    /**
     * 密码
     */
    @Column(name = "`user_password`")
    private String userPassword;

    /**
     * 所属医院
     */
    @Column(name = "`hos_id`")
    private String hosId;
    
    /**
     * 用户手机
     */
    @Column(name = "`user_phone`")
    private String userPhone;
    
    /**
     * 用户类型
     */
    @Column(name = "`user_type`")
    private String userType;
    
    /**
     * 座机分机号
     */
    @Column(name = "`extension`")
    private String extension;
    
    /**
     * 座机分机密码
     */
    @Column(name = "`passwd`")
    private String passwd;
    /**
     * 获取用户名
     *
     * @return user_name - 用户名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置用户名
     *
     * @param userName
     *            用户名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取登录名
     *
     * @return login_name - 登录名
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * 设置登录名
     *
     * @param loginName
     *            登录名
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    /**
     * 获取密码
     *
     * @return user_password - 密码
     */
    public String getUserPassword() {
        return userPassword;
    }

    /**
     * 设置密码
     *
     * @param userPassword
     *            密码
     */
    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    /**
     * 获取所属医院
     *
     * @return hos_id - 所属医院
     */
    public String getHosId() {
        return hosId;
    }

    /**
     * 设置所属医院
     *
     * @param hosId
     *            所属医院
     */
    public void setHosId(String hosId) {
        this.hosId = hosId;
    }
    
    /**
     * 获取用户手机
     * @return
     */
    public String getUserPhone() {
		return userPhone;
	}

    /**
     * 设置用户手机
     * @param userPhone 用户手机
     */
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	/**
	 * 获取用户类型
	 * @return
	 */
	public String getUserType() {
		return userType;
	}
	
	/**
	 * 设置用户类型
	 * @param userType 用户类型
	 */
	public void setUserType(String userType) {
		this.userType = userType;
	}
	
	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}


	@Transient
    private String roleId;
	
	@Transient
	private String callIP;
	
	@Transient
	private String hosName;
	
    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

	public String getCallIP() {
		return callIP;
	}

	public void setCallIP(String callIP) {
		this.callIP = callIP;
	}

	public String getHosName() {
		return hosName;
	}

	public void setHosName(String hosName) {
		this.hosName = hosName;
	}

}